package mua.core.operation.basis;

import mua.core.value.MuaValue;
import mua.core.value.Number;

public class Num {
    public static MuaValue random(MuaValue a){
        Double max = (Double) a.getValue();
        max = Math.random()*max;
        return new Number(max.toString());
    }
    public static MuaValue Int(MuaValue a){
        Double max = (Double) a.getValue();
        max = Math.floor(max);
        return new Number(max.toString());
    }
    public static MuaValue sqrt(MuaValue a){
        Double max = (Double) a.getValue();
        max = Math.sqrt(max);
        return new Number(max.toString());
    }
}
